{"componentChunkName":"component---src-templates-landing-page-template-tsx","path":"/meal-kits/gluten-free/HPN","result":{"data":{"contentfulLandingPage":{"id":"db3a6aa9-3a89-5104-a9c8-1a2165a30185","__typename":"ContentfulLandingPage","name":"Gluten Free landing Page (HPN version)","pageSections":[{"__typename":"ContentfulSimpleJumbotron","id":"984da6cd-f2f2-5682-8508-177d4bbaaef9","image":{"id":"1651435d-4dab-52ac-9d78-d70dbd03576f","__typename":"ContentfulResponsiveImageSet","alternateText":"A selection of gluten free foods and recipes with the heading \"My Gluten Free Bag - By My Food Bag\" and a logo with \"Supported by Coeliac New Zealand\"","small":{"id":"f0991ef8-dc66-5702-80a9-189ee9540e72","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2CbkNHK2jwxrj9NalPobL/bec1af7baa98500f4e66f7f2d0a757a3/Gluten-Free-jumbotron-S.png"}},"medium":{"id":"76da9f7d-9c78-5594-9c67-3e8b2760c8e7","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1DWr5yrWOIZFo0nsN1tx74/94697593025b2f54e3310bbcf35501db/Gluten-Free-jumbotron-M.png"}},"large":{"id":"896cac7e-f0c3-5425-921a-9e9b71767ee1","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/5QyCKCWPkiDkXnUldyMkEI/6b43f1ce4a7554f9a3b77c10ca9b7821/Gluten-Free-jumbotron-L.png"}}},"link":null,"scrollTarget":null},{"__typename":"ContentfulProductSelectorTabset","id":"82dab766-999c-51cc-b6a2-9b1b46c8a5a8","productSelector":[{"brand":"MFB","heading":"Gluten free recipes you can trust","displayType":"Proof Points","internalName":"MFB Product Selector (Gluten Free Proof Points)","nightPeopleSectionHeading":"Select your plan","preferencePreSelectedOption":"MFBGlutenFree","preferenceSectionHeading":"What's your recipe preference? ","primaryCallToActionText":"Get Started","showBrandCampaign":false,"adminCampaignId":null,"showPromoMessaging":false,"enrollToCampaign":false,"hideRecipeCarousel":false,"proofPoints":[{"title":"Choice & Variety","description":"Select from a variety of delicious and nutritious gluten free recipes every week","image":{"id":"562e3ab1-2667-5200-acc6-684c661ebeb3","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/79sNulxDP48YP8EXFdqFi5/acc69fe20464cc564b997f3c1431afcb/icon_PP_recipes_icon.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"title":"More of what you want","description":"A full range of quick & easy recipes ready in 15 minutes or less - plus new gluten free and gourmet options","image":{"id":"0cefd973-85f2-5887-ac03-fa73b3ec8717","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1tOjaEiw9x3A8UP7q7lusJ/fbddc582653a2e132d9c0bea8e1afd33/Quick_icon.svg"}},"color":null,"cardType":"Small","button":null,"alignment":"Center"},{"title":"Fully Flexible","description":"Choose between Serves 2 or Serves 4 for 3, 4, or 5 nights","image":{"id":"fdb8e36c-1fe6-5428-86b8-93c33f81dcbe","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/7MJTrQ7C9frV44ODfeNCJQ/f7c82a3eb6b7e7d80da48854996b44c4/icon_serving_size_icon.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null}],"excludePreferencesFromInWeekSales":null,"recommendedServings":null}]},{"__typename":"ContentfulPageSection","id":"e0623833-cc74-5c8d-9d72-b10255b40818","title":null,"childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":null,"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulMerchSlot","id":"60a95a1c-3503-5f50-9695-d4d25ef90c4f","name":"gluten free cookbook banner","link":{"relativePath":null,"absoluteUrl":"https://try.myfoodbag.co.nz/deliciously-gluten-free/"},"responsiveImageSet":{"id":"21539363-195b-59c4-97a6-f33de4b1bd36","__typename":"ContentfulResponsiveImageSet","alternateText":"gluten free cookbook banner","small":{"id":"fcd66e2f-cf4d-5d7f-b833-f60f446bb72a","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/237bLNTAqoEebYSuZSlkv0/94293a3e4de058e8b45455a5879d44bc/GLUTEN-FREE-COOKBOOK-S.png"}},"medium":{"id":"ba02b3d7-858a-58c0-9521-d6201605ba09","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/4YP6eWgaQjSMLdMqCrNkvf/72b175a3cc8f973ddf1e37db12b9a340/GLUTEN-FREE-COOKBOOK-M.png"}},"large":{"id":"422f1f54-7e7b-5575-a361-b6fe3fa2562f","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2XdbBlNi17VZcVKJVeZgwA/8abdd2fcbd24b1b1109058eee6ef5d16/GLUTEN-FREE-COOKBOOK-L.png"}}}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"8d43b95c-23f6-5c37-8b2e-181bf7bf7e0c","title":"What's Included?","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulHeroCard","id":"3ca06429-5823-5d52-998e-7ddfd16a30e1","title":"Choice & Variety","description":"Select from a variety of delicious and nutritious gluten free recipes every week","image":{"id":"562e3ab1-2667-5200-acc6-684c661ebeb3","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/79sNulxDP48YP8EXFdqFi5/acc69fe20464cc564b997f3c1431afcb/icon_PP_recipes_icon.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"__typename":"ContentfulHeroCard","id":"cc986d4f-51ce-5bf1-a909-c3deb93d4a8d","title":"Gluten Free Guarantee","description":"Our trusted suppliers and robust processes ensure a reliable experience","image":{"id":"38034515-1f10-523c-b500-8c70cb246f6e","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/19OkRiaGhRHOvcWCXZKSzy/64a2c715c125e6e05abcd529f227113b/Gluten_free_icon-01.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"__typename":"ContentfulHeroCard","id":"3fd76bb5-bd6f-5d8b-b029-600cd6d6c992","title":"Fully Flexible","description":"Choose between Serves 2 or Serves 4 for 3, 4, or 5 nights","image":{"id":"fdb8e36c-1fe6-5428-86b8-93c33f81dcbe","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/7MJTrQ7C9frV44ODfeNCJQ/f7c82a3eb6b7e7d80da48854996b44c4/icon_serving_size_icon.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"90c435c5-501c-5beb-913c-d9fb53446e82","title":"Supported by Coeliac New Zealand","childContentfulPageSectionSubtitleTextNode":{"subtitle":"My Gluten Free Bag is supported by Coeliac New Zealand. Wherever possible, we use products that have been approved by Coeliac New Zealand.  Coeliac New Zealand also supports us with training and guidance in relation to our standards, processes, and practices for purchasing and manufacturing gluten free ingredients.  "},"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulHeroCard","id":"85a23224-fa60-56b7-b564-5ee7f8f54a98","title":null,"description":null,"image":{"id":"08a8b6cd-8199-5516-b0d5-1676eb3e6004","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/5BE5iYSElhPZC8Z1vnU1Hr/62e10a98560ad809db089bcb188a378f/gf_s.png"}},"color":null,"cardType":"Large","button":null,"alignment":null}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulRecipeCarousel","id":"d17515f2-0adf-5d5c-a6e9-8972c06e7b59","sku":"K00000053","clickable":true,"backgroundColor":null,"autoGenerateTitle":false,"titleOverride":"What's on the menu?","button":null,"hideWeekSelector":false},{"__typename":"ContentfulTwoColumnSection","id":"e20269a9-9304-5aed-b0f8-17052106e5d8","title":"Why choose My Gluten Free Bag?","imageOnLeftLayout":true,"childContentfulTwoColumnSectionTextTextNode":{"text":"With support from Coeliac New Zealand, collaborating with trusted suppliers and adherence to rigorous processes, we are able to ensure a consistently delicious and reliable gluten free experience.\n\nMy Gluten Free Bag delivers exceptional variety and flexibility every week, featuring eight guaranteed gluten free recipes available in serving sizes for 2 or 4 people.\n\nGet everything you need for a gluten free dinner delivered straight to your door for the ultimate convenience and assurance."},"images":[{"id":"dd21b879-8017-5042-a625-e9ba991201ef","__typename":"ContentfulResponsiveImageSet","alternateText":"Three healthy gluten free meals presented on dinner plates","small":{"id":"c477c875-12bc-5f79-8f07-f01872aba3bf","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/52HkV7kJtytgrsJeA1ZSzM/fc5cee0b5c83a398522df0df429f3072/GF_image_S.png"}},"medium":{"id":"c0dc7c6b-c03f-57c3-bd7e-a308a13f2e20","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/6HfczElMHkojgx1PRzBj3A/8030d7abf2aa10c914cd7443e481bd11/GF_image_M.png"}},"large":{"id":"ddb61572-0a96-52fa-94eb-28d027f4c6f0","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/lUjXEuCfWwcPmo1GI8cAf/10c6c6b23e25342b753dd6962f433ec8/GF_image_L.png"}}}],"callToAction":{"label":"Order Now","link":null,"scrollTarget":{"__typename":"ContentfulPageSection","id":"ab761707-9351-5a33-9cc7-3b0ae6b4e63a"},"buttonType":null},"backgroundColor":null,"textAlignment":"Center","textColor":null,"skewed":false},{"__typename":"ContentfulPageSection","id":"efa4bba8-39c5-5465-ac70-0ebaafbbd803","title":"Frequently asked questions","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#EEEEEE"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulFaqCard","id":"48b32fba-8208-5aa9-a96b-d5a3130340a7","question":"Who is My Gluten Free Bag suitable for?","answer":{"answer":"Our gluten free meal kit is the perfect solution for those following a gluten free diet and suitable for anyone with gluten intolerance or coeliac disease.   "}},{"__typename":"ContentfulFaqCard","id":"8760fd18-52e0-576a-b4f8-b54880a6b975","question":"What gluten free alternatives can I expect to be used in this bag?","answer":{"answer":"Our gluten free recipes use a variety of alternative carbohydrate sources, including quinoa, brown and white rice, legumes, starchy and root vegetables, and gluten free bread and pasta products.  You will not find any gluten containing grains, or derivatives of these grains, as well as any products, sauces or spice mixes containing gluten.\n\n"}},{"__typename":"ContentfulFaqCard","id":"0e092e1c-7414-5028-8858-5a94c416650a","question":"How can I be confident all of the ingredients will be gluten free? ","answer":{"answer":"We have strict processes in place to ensure that our My Gluten Free Bag is packed in an environment that ensures there is no cross-contamination with wheat or gluten. By working with a select group of trusted and approved suppliers for the ingredients in this bag, we ensure all products supplied meet our requirements and have been verified as gluten free. All products supplied are also checked to ensure they comply with up-to-date allergen labelling requirements. "}},{"__typename":"ContentfulFaqCard","id":"60cfad45-3877-5b1b-b191-7e857e6e333f","question":"What days do you deliver?","answer":{"answer":"Due to the operational processes required to ensure we can adhere to our gluten free protocols, we are currently offering weekly Saturday delivery for our gluten free meal kit."}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"57f598ca-a25a-57bf-9450-13c33d3f86a5","title":null,"childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulRenderRawHtml","id":"8869f009-4650-5086-84b7-ab930c402d64","title":"Mailchimp subscribe form","html":{"html":"<div id=\"mc_embed_shell\">\n      <link href=\"https://cdn-images.mailchimp.com/embedcode/classic-061523.css\" rel=\"stylesheet\" type=\"text/css\">\n  <style type=\"text/css\">\n        #mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 600px;}\n        /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.\n           We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */\n</style>\n<div id=\"mc_embed_signup\">\n    <form action=\"https://myfoodbag.us11.list-manage.com/subscribe/post?u=b2b2f55ddf83beb92d2e6fd58&amp;id=4d4be473ce&amp;f_id=00c6a9e0f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\">\n        <div id=\"mc_embed_signup_scroll\"><h2>Subscribe to our newsletter!</h2>\n            <div class=\"indicates-required\"><span class=\"asterisk\">*</span> indicates required</div>\n            <div class=\"mc-field-group\"><label for=\"mce-FNAME\">First Name </label><input type=\"text\" name=\"FNAME\" class=\" text\" id=\"mce-FNAME\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-LNAME\">Last Name </label><input type=\"text\" name=\"LNAME\" class=\" text\" id=\"mce-LNAME\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address <span class=\"asterisk\">*</span></label><input type=\"email\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" required=\"\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-ROLE\">Role </label><select name=\"ROLE\" class=\"\" id=\"mce-ROLE\"><option value=\"\"></option><option value=\"GP\">GP</option><option value=\"Nurse\">Nurse</option><option value=\"Dietitian\">Dietitian</option><option value=\"Nutritionist\">Nutritionist</option><option value=\"Health Coach\">Health Coach</option><option value=\"Practice Manager\">Practice Manager</option><option value=\"Specialist\">Specialist</option><option value=\"Other\">Other</option></select></div><div class=\"mc-field-group\"><label for=\"mce-ORG\">Organiation </label><input type=\"text\" name=\"ORG\" class=\" text\" id=\"mce-ORG\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-REGION\">Region </label><select name=\"REGION\" class=\"\" id=\"mce-REGION\"><option value=\"\"></option><option value=\"Northland\">Northland</option><option value=\"Auckland\">Auckland</option><option value=\"Waikato\">Waikato</option><option value=\"Bay of Plenty\">Bay of Plenty</option><option value=\"Gisborne\">Gisborne</option><option value=\"Hawke's Bay\">Hawke's Bay</option><option value=\"Taranaki\">Taranaki</option><option value=\"Manawatū-Whanganui\">Manawatū-Whanganui</option><option value=\"Wellington\">Wellington</option><option value=\"Tasman\">Tasman</option><option value=\"Nelson\">Nelson</option><option value=\"Marlborough\">Marlborough</option><option value=\"West Coast\">West Coast</option><option value=\"Canterbury\">Canterbury</option><option value=\"Otago\">Otago</option><option value=\"Southland\">Southland</option></select></div><div class=\"mc-field-group\"><label for=\"mce-SPECIALTY\">Specialty </label><select name=\"SPECIALTY\" class=\"\" id=\"mce-SPECIALTY\"><option value=\"\"></option><option value=\"Diabetes\">Diabetes</option><option value=\"Weight Management/Bariatrics\">Weight Management/Bariatrics</option><option value=\"General Practice/Primary Care\">General Practice/Primary Care</option><option value=\"Other\">Other</option></select></div>\n<div hidden=\"\"><input type=\"hidden\" name=\"tags\" value=\"9270345\"></div>\n        <div id=\"mce-responses\" class=\"clear\">\n            <div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"></div>\n            <div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"></div>\n        </div><div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\"><input type=\"text\" name=\"b_b2b2f55ddf83beb92d2e6fd58_4d4be473ce\" tabindex=\"-1\" value=\"\"></div><div class=\"clear\"><input type=\"submit\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" value=\"Subscribe\"></div>\n    </div>\n</form>\n</div>\n<script type=\"text/javascript\" src=\"//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js\"></script><script type=\"text/javascript\">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[0]='EMAIL';ftypes[0]='email';fnames[7]='ROLE';ftypes[7]='dropdown';fnames[8]='ORG';ftypes[8]='text';fnames[10]='REGION';ftypes[10]='dropdown';fnames[9]='SPECIALTY';ftypes[9]='dropdown';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';fnames[5]='BIRTHDAY';ftypes[5]='birthday';fnames[6]='COMPANY';ftypes[6]='text';}(jQuery));var $mcj = jQuery.noConflict(true);\n    // SMS Phone Multi-Country Functionality\n    if(!window.MC) {\n      window.MC = {};\n    }\n    window.MC.smsPhoneData = {\n      defaultCountryCode: 'NZ',\n      programs: [],\n      smsProgramDataCountryNames: []\n    };\n\n    function getCountryUnicodeFlag(countryCode) {\n       return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))\n    };\n\n    // HTML sanitization function to prevent XSS\n    function sanitizeHtml(str) {\n      if (typeof str !== 'string') return '';\n      return str\n        .replace(/&/g, '&amp;')\n        .replace(/</g, '&lt;')\n        .replace(/>/g, '&gt;')\n        .replace(/\"/g, '&quot;')\n        .replace(/'/g, '&#x27;')\n        .replace(/\\//g, '&#x2F;');\n    }\n\n    // URL sanitization function to prevent javascript: and data: URLs\n    function sanitizeUrl(url) {\n      if (typeof url !== 'string') return '';\n      const trimmedUrl = url.trim().toLowerCase();\n      if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) {\n        return '#';\n      }\n      return url;\n    }\n\n    const getBrowserLanguage = () => {\n      if (!window?.navigator?.language?.split('-')[1]) {\n        return window?.navigator?.language?.toUpperCase();\n      }\n      return window?.navigator?.language?.split('-')[1];\n    };\n\n    function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return null;\n      }\n\n      const browserLanguage = getBrowserLanguage();\n\n      if (browserLanguage) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === browserLanguage,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      if (defaultCountryCode) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === defaultCountryCode,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      return smsProgramData[0];\n    }\n\n    function updateSmsLegalText(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      const programs = window?.MC?.smsPhoneData?.programs;\n      if (!programs || !Array.isArray(programs)) {\n        return;\n      }\n\n      const program = programs.find(program => program?.countryCode === countryCode);\n      if (!program || !program.requiredTemplate) {\n        return;\n      }\n\n      const legalTextElement = document.querySelector('#legal-text-' + fieldName);\n      if (!legalTextElement) {\n        return;\n      }\n\n      // Remove HTML tags and clean up the text\n      const divRegex = new RegExp('</?[div][^>]*>', 'gi');\n      const fullAnchorRegex = new RegExp('<a.*?</a>', 'g');\n      const anchorRegex = new RegExp('<a href=\"(.*?)\" target=\"(.*?)\">(.*?)</a>');\n\n      const template = program.requiredTemplate.replace(divRegex, '');\n\n      legalTextElement.textContent = '';\n      const parts = template.split(/(<a href=\".*?\" target=\".*?\">.*?<\\/a>)/g);\n      parts.forEach(function(part) {\n        if (!part) {\n          return;\n        }\n        const anchorMatch = part.match(/<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\\/a>/);\n        if (anchorMatch) {\n          const linkElement = document.createElement('a');\n          linkElement.href = sanitizeUrl(anchorMatch[1]);\n          linkElement.target = sanitizeHtml(anchorMatch[2]);\n          linkElement.textContent = sanitizeHtml(anchorMatch[3]);\n          legalTextElement.appendChild(linkElement);\n        } else {\n          legalTextElement.appendChild(document.createTextNode(part));\n        }\n      });\n\n    }\n\n    function generateDropdownOptions(smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return '';\n      }\n\n      return smsProgramData.map(program => {\n        const flag = getCountryUnicodeFlag(program.countryCode);\n        const countryName = getCountryName(program.countryCode);\n        const callingCode = program.countryCallingCode || '';\n        // Sanitize all values to prevent XSS\n        const sanitizedCountryCode = sanitizeHtml(program.countryCode || '');\n        const sanitizedCountryName = sanitizeHtml(countryName || '');\n        const sanitizedCallingCode = sanitizeHtml(callingCode || '');\n        return '<option value=\"' + sanitizedCountryCode + '\">' + sanitizedCountryName + ' ' + sanitizedCallingCode + '</option>';\n      }).join('');\n    }\n\n    function getCountryName(countryCode) {\n      if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) {\n        for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) {\n          if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) {\n            return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name;\n          }\n        }\n      }\n      return countryCode;\n    }\n\n    function getDefaultPlaceholder(countryCode) {\n      if (!countryCode || typeof countryCode !== 'string') {\n        return '+1 000 000 0000'; // Default US placeholder\n      }\n\n            var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el código de país ES +34 antes del número de teléfono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n      ];\n\n      const selectedPlaceholder = mockPlaceholders.find(function(item) {\n        return item && item.countryCode === countryCode;\n      });\n\n      return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder;\n    }\n\n    function updatePlaceholder(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      const phoneInput = document.querySelector('#mce-' + fieldName);\n      if (!phoneInput) {\n        return;\n      }\n\n      const placeholder = getDefaultPlaceholder(countryCode);\n      if (placeholder) {\n        phoneInput.placeholder = placeholder;\n      }\n    }\n\n    function updateCountryCodeInstruction(countryCode, fieldName) {\n      updatePlaceholder(countryCode, fieldName);\n\n    }\n\n    function getDefaultHelpText(countryCode) {\n      var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el código de país ES +34 antes del número de teléfono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n      ];\n\n      if (!countryCode || typeof countryCode !== 'string') {\n        return mockPlaceholders[0].helpText;\n      }\n\n      const selectedHelpText = mockPlaceholders.find(function(item) {\n          return item && item.countryCode === countryCode;\n        });\n\n        return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText;\n    }\n\n    function setDefaultHelpText(countryCode) {\n      const helpTextSpan = document.querySelector('#help-text');\n      if (!helpTextSpan) {\n        return;\n      }\n\n    }\n\n    function updateHelpTextCountryCode(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      setDefaultHelpText(countryCode);\n    }\n\n    function initializeSmsPhoneDropdown(fieldName) {\n      if (!fieldName || typeof fieldName !== 'string') {\n        return;\n      }\n\n      const dropdown = document.querySelector('#country-select-' + fieldName);\n      const displayFlag = document.querySelector('#flag-display-' + fieldName);\n\n      if (!dropdown || !displayFlag) {\n        return;\n      }\n\n      const smsPhoneData = window.MC?.smsPhoneData;\n      if (smsPhoneData && smsPhoneData.programs && Array.isArray(smsPhoneData.programs)) {\n        dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs);\n      }\n\n      const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs);\n      if (defaultProgram && defaultProgram.countryCode) {\n        dropdown.value = defaultProgram.countryCode;\n\n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag');\n        }\n\n        updateSmsLegalText(defaultProgram.countryCode, fieldName);\n        updatePlaceholder(defaultProgram.countryCode, fieldName);\n        updateCountryCodeInstruction(defaultProgram.countryCode, fieldName);\n      }\n\n      var smsNotRequiredRemoveCountryCodeEnabled = true;\n      var smsField = Object.values({\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"0\",\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"1\",\"field_type\":\"merge\"},\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"2\",\"field_type\":\"merge\"},\"ROLE\":{\"name\":\"ROLE\",\"label\":\"Role\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Role\",\"choices\":[{\"value\":\"GP\",\"label\":\"GP\"},{\"value\":\"Nurse\",\"label\":\"Nurse\"},{\"value\":\"Dietitian\",\"label\":\"Dietitian\"},{\"value\":\"Nutritionist\",\"label\":\"Nutritionist\"},{\"value\":\"Health Coach\",\"label\":\"Health Coach\"},{\"value\":\"Practice Manager\",\"label\":\"Practice Manager\"},{\"value\":\"Specialist\",\"label\":\"Specialist\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":7,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"3\",\"field_type\":\"merge\"},\"ORG\":{\"name\":\"ORG\",\"label\":\"Organiation\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Organisation\",\"merge_id\":8,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"4\",\"field_type\":\"merge\"},\"REGION\":{\"name\":\"REGION\",\"label\":\"Region\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Region\",\"choices\":[{\"value\":\"Northland\",\"label\":\"Northland\"},{\"value\":\"Auckland\",\"label\":\"Auckland\"},{\"value\":\"Waikato\",\"label\":\"Waikato\"},{\"value\":\"Bay of Plenty\",\"label\":\"Bay of Plenty\"},{\"value\":\"Gisborne\",\"label\":\"Gisborne\"},{\"value\":\"Hawke's Bay\",\"label\":\"Hawke's Bay\"},{\"value\":\"Taranaki\",\"label\":\"Taranaki\"},{\"value\":\"Manawatū-Whanganui\",\"label\":\"Manawatū-Whanganui\"},{\"value\":\"Wellington\",\"label\":\"Wellington\"},{\"value\":\"Tasman\",\"label\":\"Tasman\"},{\"value\":\"Nelson\",\"label\":\"Nelson\"},{\"value\":\"Marlborough\",\"label\":\"Marlborough\"},{\"value\":\"West Coast\",\"label\":\"West Coast\"},{\"value\":\"Canterbury\",\"label\":\"Canterbury\"},{\"value\":\"Otago\",\"label\":\"Otago\"},{\"value\":\"Southland\",\"label\":\"Southland\"}],\"merge_id\":10,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"5\",\"field_type\":\"merge\"},\"SPECIALTY\":{\"name\":\"SPECIALTY\",\"label\":\"Specialty\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Specialty\",\"choices\":[{\"value\":\"Diabetes\",\"label\":\"Diabetes\"},{\"value\":\"Weight Management/Bariatrics\",\"label\":\"Weight Management/Bariatrics\"},{\"value\":\"General Practice/Primary Care\",\"label\":\"General Practice/Primary Care\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":9,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"6\",\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks & Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":164},\"PHONE\":{\"name\":\"PHONE\",\"label\":\"Phone Number\",\"helper_text\":\"\",\"type\":\"phone\",\"required\":false,\"audience_field_name\":\"Phone Number\",\"phoneformat\":\"\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":4},\"BIRTHDAY\":{\"name\":\"BIRTHDAY\",\"label\":\"Birthday\",\"helper_text\":\"\",\"type\":\"birthday\",\"required\":false,\"audience_field_name\":\"Birthday\",\"dateformat\":\"MM/DD\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":5},\"COMPANY\":{\"name\":\"COMPANY\",\"label\":\"Company\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Company\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });\n      var isRequired = smsField ? smsField.required : false;\n      var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n\n      var phoneInput = document.querySelector('#mce-' + fieldName);\n      if (phoneInput && defaultProgram.countryCallingCode && shouldAppendCountryCode) {\n        phoneInput.value = defaultProgram.countryCallingCode;\n      }\n\n      displayFlag?.addEventListener('click', function(e) {\n        dropdown.focus();\n      });\n\n      dropdown?.addEventListener('change', function() {\n        const selectedCountry = this.value;\n\n        if (!selectedCountry || typeof selectedCountry !== 'string') {\n          return;\n        }\n\n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(selectedCountry);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag');\n        }\n\n        const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) {\n          return program && program.countryCode === selectedCountry;\n        });\n\n        var smsNotRequiredRemoveCountryCodeEnabled = true;\n        var smsField = Object.values({\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"0\",\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"1\",\"field_type\":\"merge\"},\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"2\",\"field_type\":\"merge\"},\"ROLE\":{\"name\":\"ROLE\",\"label\":\"Role\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Role\",\"choices\":[{\"value\":\"GP\",\"label\":\"GP\"},{\"value\":\"Nurse\",\"label\":\"Nurse\"},{\"value\":\"Dietitian\",\"label\":\"Dietitian\"},{\"value\":\"Nutritionist\",\"label\":\"Nutritionist\"},{\"value\":\"Health Coach\",\"label\":\"Health Coach\"},{\"value\":\"Practice Manager\",\"label\":\"Practice Manager\"},{\"value\":\"Specialist\",\"label\":\"Specialist\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":7,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"3\",\"field_type\":\"merge\"},\"ORG\":{\"name\":\"ORG\",\"label\":\"Organiation\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Organisation\",\"merge_id\":8,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"4\",\"field_type\":\"merge\"},\"REGION\":{\"name\":\"REGION\",\"label\":\"Region\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Region\",\"choices\":[{\"value\":\"Northland\",\"label\":\"Northland\"},{\"value\":\"Auckland\",\"label\":\"Auckland\"},{\"value\":\"Waikato\",\"label\":\"Waikato\"},{\"value\":\"Bay of Plenty\",\"label\":\"Bay of Plenty\"},{\"value\":\"Gisborne\",\"label\":\"Gisborne\"},{\"value\":\"Hawke's Bay\",\"label\":\"Hawke's Bay\"},{\"value\":\"Taranaki\",\"label\":\"Taranaki\"},{\"value\":\"Manawatū-Whanganui\",\"label\":\"Manawatū-Whanganui\"},{\"value\":\"Wellington\",\"label\":\"Wellington\"},{\"value\":\"Tasman\",\"label\":\"Tasman\"},{\"value\":\"Nelson\",\"label\":\"Nelson\"},{\"value\":\"Marlborough\",\"label\":\"Marlborough\"},{\"value\":\"West Coast\",\"label\":\"West Coast\"},{\"value\":\"Canterbury\",\"label\":\"Canterbury\"},{\"value\":\"Otago\",\"label\":\"Otago\"},{\"value\":\"Southland\",\"label\":\"Southland\"}],\"merge_id\":10,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"5\",\"field_type\":\"merge\"},\"SPECIALTY\":{\"name\":\"SPECIALTY\",\"label\":\"Specialty\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Specialty\",\"choices\":[{\"value\":\"Diabetes\",\"label\":\"Diabetes\"},{\"value\":\"Weight Management/Bariatrics\",\"label\":\"Weight Management/Bariatrics\"},{\"value\":\"General Practice/Primary Care\",\"label\":\"General Practice/Primary Care\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":9,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"6\",\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks & Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":164},\"PHONE\":{\"name\":\"PHONE\",\"label\":\"Phone Number\",\"helper_text\":\"\",\"type\":\"phone\",\"required\":false,\"audience_field_name\":\"Phone Number\",\"phoneformat\":\"\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":4},\"BIRTHDAY\":{\"name\":\"BIRTHDAY\",\"label\":\"Birthday\",\"helper_text\":\"\",\"type\":\"birthday\",\"required\":false,\"audience_field_name\":\"Birthday\",\"dateformat\":\"MM/DD\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":5},\"COMPANY\":{\"name\":\"COMPANY\",\"label\":\"Company\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Company\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });\n        var isRequired = smsField ? smsField.required : false;\n        var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n\n        var phoneInput = document.querySelector('#mce-' + fieldName);\n        if (phoneInput && selectedProgram.countryCallingCode && shouldAppendCountryCode) {\n          phoneInput.value = selectedProgram.countryCallingCode;\n        }\n\n        updateSmsLegalText(selectedCountry, fieldName);\n        updatePlaceholder(selectedCountry, fieldName);\n        updateCountryCodeInstruction(selectedCountry, fieldName);\n      });\n    }\n\n    document.addEventListener('DOMContentLoaded', function() {\n      const smsPhoneFields = document.querySelectorAll('[id^=\"country-select-\"]');\n\n      smsPhoneFields.forEach(function(dropdown) {\n        const fieldName = dropdown?.id.replace('country-select-', '');\n        initializeSmsPhoneDropdown(fieldName);\n      });\n    });\n    </script></div>\n"}},{"__typename":"ContentfulRenderRawHtml","id":"a5549610-8f17-5869-9f9e-76c0ed098028","title":"Privacy Policy","html":{"html":"<div id=\"mc_disclaimer\">By continuing I agree to the My Food Bag <a href=\"https://www.myfoodbag.co.nz/privacy\">Privacy Policy</a></div>"}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"c8d4749a-d1d7-5e6f-a918-803a49e4d926","title":"Learn about our other health solutions","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":null,"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulHeroCard","id":"c096b432-5383-5e96-ade5-76fe3c0ed33f","title":"Fresh Start","description":null,"image":{"id":"8a2a92b0-5d22-51aa-979c-617da66f2e4b","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/38UmBbqG1EHyJhYwdfPgVn/84af0182bafc826da41c3abd5bd493df/High_Blood_pressure_icons_Try_Vegetarian--.svg"}},"color":null,"cardType":"Small","button":{"label":"Fresh Start","link":{"relativePath":"/low-cal","absoluteUrl":null},"scrollTarget":null,"buttonType":null},"alignment":null},{"__typename":"ContentfulHeroCard","id":"5cb106b4-9e1a-5bfe-90df-5fa0ce95c0ca","title":null,"description":null,"image":{"id":"3500198b-15f0-553a-bf7c-d8661f363284","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/v1A7B8O4DKrf5ZzNJg0jd/57aadfdfcd4a33d601a419976c7de47d/health_hub_icons_weight_management.svg"}},"color":null,"cardType":"Large","button":{"label":"GLP-1 Support Plan","link":{"relativePath":"/glp-1-support-recipes/HPN","absoluteUrl":null},"scrollTarget":null,"buttonType":"Primary"},"alignment":null},{"__typename":"ContentfulHeroCard","id":"a72c4f71-5c62-5c25-bdca-b054977b48dd","title":"Diabetes","description":null,"image":{"id":"88e1bd26-974e-5602-8a20-b768d9f7aad2","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1ajcvWyfCtIyjnLIKokVkP/6a0aa513ca0eb08f9c775fbc46318007/low_carb_icon_low_gi.png"}},"color":null,"cardType":"Large","button":{"label":"Diabetes Plan","link":{"relativePath":"/meal-kits/diabetes-plan/HPN","absoluteUrl":null},"scrollTarget":null,"buttonType":"Primary"},"alignment":null}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"}],"pageSettings":null,"metadata":{"title":"My Food Bag Gluten Free","description":{"description":"The simple, healthy and delicious way to eat gluten free. Choose from 8 gluten free recipes each week, delivered straight to your door. Get everything you need for a gluten free dinner. Supported by Coeliac New Zealand. "},"sharingLinkImage":{"id":"5b35cc55-a337-58e8-862f-7ee3cf1ee1e1","__typename":"ContentfulResponsiveImageSet","alternateText":"A selection of gluten free foods and recipes with the heading \"My Gluten Free Bag - By My Food Bag\" and a logo with \"Supported by Coeliac New Zealand\"","small":{"id":"f0991ef8-dc66-5702-80a9-189ee9540e72","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2CbkNHK2jwxrj9NalPobL/bec1af7baa98500f4e66f7f2d0a757a3/Gluten-Free-jumbotron-S.png"}},"medium":{"id":"76da9f7d-9c78-5594-9c67-3e8b2760c8e7","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1DWr5yrWOIZFo0nsN1tx74/94697593025b2f54e3310bbcf35501db/Gluten-Free-jumbotron-M.png"}},"large":{"id":"896cac7e-f0c3-5425-921a-9e9b71767ee1","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/5QyCKCWPkiDkXnUldyMkEI/6b43f1ce4a7554f9a3b77c10ca9b7821/Gluten-Free-jumbotron-L.png"}}},"type":"product","canonicalUrlLink":{"relativePath":"/meal-kits/gluten-free","absoluteUrl":null},"allowIndexing":true,"keywords":["gluten free meal kit","my food bag gluten free","my gluten free bag","gluten free meal delivery","gluten free recipes","gluten free diet"]}}},"pageContext":{"id":"db3a6aa9-3a89-5104-a9c8-1a2165a30185"}},"staticQueryHashes":["2874938835","3353766699","347068148","3475688630","3535798881","3593756770","3593756770","3593756770","3680153258","586106881","586106881"]}